<template>
  <div class="wrap">
    <a-result status="404" title="404" sub-title="对不起，您访问的页面不存在.">
      <template #extra>
        <a-button type="primary" @click="router.replace('/')">返回主页</a-button>
      </template>
    </a-result>
  </div>
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router'
const router = useRouter()
</script>

<style lang="scss" scoped>
.wrap {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
